<template>
    <div>
        登录页
        <br>
        <el-button type="primary" @click="login">登录用户</el-button>
        <el-button type="primary" @click="gotoHome">返回主页</el-button>
    </div>
</template>

<script setup lang="ts">
import router from '../router';
import { useLogin } from '../pinia/loginInfo';
function gotoHome(){
    router.push('/')
}

function login(){
    useLogin().updateToken('admin')
    router.push('/')
}

</script>

<style scoped>

</style>